package main

import "fmt"

func test1() {
	var n1 int = 19
	var n2 float32 = 4.78
	var n3 bool = false
	var n4 byte = 'a'
	var s1 string = fmt.Sprintf("%d", n1)
	fmt.Printf("s1对应的类型是：%T ，s1 = %q \n", s1, s1)
	var s2 string = fmt.Sprintf("%f", n2)
	fmt.Printf("s2对应的类型是：%T ，s2 = %q \n", s2, s2)
	var s3 string = fmt.Sprintf("%t", n3)
	fmt.Printf("s3对应的类型是：%T ，s3 = %q \n", s3, s3)
	var s4 string = fmt.Sprintf("%c", n4)
	fmt.Printf("s4对应的类型是：%T ，s4 = %q \n", s4, s4)
}

func main() {
	var s1 string = "abcdef"
	s1 += "abc" + "abcd" + "abcd" +
		"abcd" + "abcd" + "abcd" + "abcd" +
		"abcd"
	fmt.Println(s1)

	// 如果字符串很多的话用 `` 	括起来
	var s2 string = `package main

import "fmt"

func main() {
	var s1 string = "abcdef"
	s1 += "abc" + "abcd" + "abcd" +
		"abcd" + "abcd" + "abcd" + "abcd" +
		"abcd"
	fmt.Println(s1)`

	fmt.Println(s2)

	test1()
}
